import request from '@/plugins/request';

// 批量分配患者
export function BatchPatient (data) {
    return request({
        url: '/v1/patient/index/allot-batch-patient',
        method: 'post',
        data
    });
}
// 下次到诊时间
export function updateNextRevisitingTime (data) {
    return request({
        url: 'v1/patient/index/update-next-revisiting-time',
        method: 'post',
        data
    });
}
// 已到患者列表
export function GetArriveList (data) {
    return request({
        url: 'v1/patient/index/arrive-list',
        method: 'get',
        params: data
    });
}
// 预到患者列表
export function GetOrderArriveList (data) {
    return request({
        url: 'v1/patient/index/order-arrive-list',
        method: 'get',
        params: data
    });
}
// 过期未到患者列表
export function GetUnarriveList (data) {
    return request({
        url: 'v1/patient/index/unarrive-list',
        method: 'get',
        params: data
    });
}
// 筛选选患者
export function ScreenPatient (data) {
    return request({
        url: '/v1/patient/index/allot-patient-list',
        method: 'get',
        params: data
    });
}
// 患者详情中标签编辑
export function setAagsEdit (data) {
    return request({
        url: 'v1/patient/index/tags-edit',
        method: 'post',
        data: data
    });
}
// 编辑患者抗复发年限
export function setAntiyear (data) {
    return request({
        url: 'v1/patient/index/update-anti-year',
        method: 'post',
        data: data
    });
}
// 筛选患者条件
export function ScreenBasicsPatient (data) {
    return request({
        url: '/v1/patient/index/allot-condition-list',
        method: 'get',
        params: data
    });
}

// 公海列表
// 获取列表
export function PublicSeaList (data) {
    return request({
        url: '/v1/patient/index/seas-list',
        method: 'get',
        params: data
    });
}

// 归属人列表
export function PublicFromMember (data) {
    return request({
        url: '/v1/patient/index/member-list',
        method: 'get',
        params: data
    });
}

// 分配患者
export function PublicDistribution (data) {
    return request({
        url: '/v1/patient/index/allot-patient',
        method: 'post',
        data
    });
}

// 客服列表
export function serveList (data) {
    return request({
        url: '/v1/patient/index/patient-list',
        method: 'get',
        params: data
    });
}
// 获取分配患者筛选条件列表
export function batchList (data) {
    return request({
        url: 'v1/patient/index/batch-condition-list',
        method: 'get',
        params: data
    });
}
// 患者列表
export function PatientList (data) {
    return request({
        url: '/v1/patient/index/patient-assistant-list',
        method: 'get',
        params: data
    });
}

// 治疗 -- 患者列表
export function PatientsTreated (data) {
    return request({
        url: '/v1/clinic/treatment-patient/index',
        method: 'get',
        params: data
    });
}
// 编辑剩余--退费
export function RefundTreatNum (data) {
    return request({
        url: '/v1/clinic/treatment-patient/refund-treat-num',
        method: 'post',
        data
    });
}
// 患者治疗项目剩余数量
export function GetTreatmentNum (data) {
    return request({
        url: '/v1/clinic/treatment-patient/get-treatment-num',
        method: 'get',
        params: data
    });
}
// 编辑剩余--新增
export function addTreatNum (data) {
    return request({
        url: '/v1/clinic/treatment-patient/add-treat-num',
        method: 'post',
        data
    });
}
// 城市搜索
export function searchCity (data) {
    return request({
        url: '/v1/common/provinces/list',
        method: 'get',
        params: data
    });
}
// 患者编辑详情
export function PatientUpdataDetail (data) {
    return request({
        url: '/v1/patient/index/edit-info',
        method: 'get',
        params: data
    });
}

// 患者编辑
export function PatientUpdata (data) {
    return request({
        url: '/v1/patient/index/update',
        method: 'post',
        data
    });
}

// 患者详情信息
export function PatientDetailInfo (data) {
    return request({
        url: '/v1/patient/index/info',
        method: 'get',
        params: data
    });
}

// 用户足迹
export function PatientInfoFoot (data) {
    return request({
        url: '/v1/patient/index/foot-print-list',
        method: 'get',
        params: data
    });
}
// 回访信息
export function PatientCallback (data) {
    return request({
        url: 'v1/patient/index/callback-list',
        method: 'get',
        params: data
    });
}
// 病例辅助列表
export function PatientMedicalList (data) {
    return request({
        url: 'v1/patient/index/medical-list',
        method: 'get',
        params: data
    });
}
// 病例信息
export function PatientMedicalInfo (data) {
    return request({
        url: 'v1/patient/index/medical-info',
        method: 'get',
        params: data
    });
}
// 编辑病例
export function PatientMedicalEdit (data) {
    return request({
        url: 'v1/patient/index/edit-medical',
        method: 'post',
        data
    });
}
// 新增病历辅助内容
export function PatientMedicalCreate (data) {
    return request({
        url: 'v1/patient/index/create-medical-auxiliary',
        method: 'post',
        data
    });
}
// 治疗图片列表
export function PatientClinicImgList (data) {
    return request({
        url: 'v1/patient/index/clinic-img-list',
        method: 'get',
        params: data
    });
}
// 治疗图片绑定部位
export function PatientClinicImgEdit (data) {
    return request({
        url: 'v1/patient/index/edit-clinic-img',
        method: 'post',
        data
    });
}
// 删除治疗图片
export function PatientClinicImgDelete (data) {
    return request({
        url: 'v1/patient/index/delete-clinic-img',
        method: 'post',
        data
    });
}
// 消费信息列表
export function PatientConsumptionList (data) {
    return request({
        url: 'v1/patient/index/consumption-list',
        method: 'get',
        params: data
    });
}
// 消费信息详情
export function PatientConsumptionInfo (data) {
    return request({
        url: 'v1/patient/index/consumption-info',
        method: 'get',
        params: data
    });
}
// 治疗信息列表
export function PatientTreatmentList (data) {
    return request({
        url: 'v1/patient/index/treatment-list',
        method: 'get',
        params: data
    });
}

// 抗复发列表
export function AntirelapseList (data) {
    return request({
        url: 'v1/patient/index/anti-list',
        method: 'get',
        params: data
    });
}

// 治疗信息详情
export function PatientTreatmentInfo (data) {
    return request({
        url: 'v1/patient/index/treatment-info',
        method: 'get',
        params: data
    });
}
// 操作日志
export function LogList (data) {
    return request({
        url: 'v1/patient/index/operate-log-list',
        method: 'get',
        params: data
    });
}
// 编辑患者抗复发状态
export function UpdateAnti (data) {
    return request({
        url: 'v1/patient/index/update-anti',
        method: 'post',
        data
    });
}
// 获取二级病种
export function getSecondLevel (data) {
    return request({
        url: 'v1/patient/index/search-diseases-list',
        method: 'get',
        params: data
    });
}
// 患者备注修改
export function UpdateRemark (data) {
    return request({
        url: 'v1/patient/index/update-remark',
        method: 'post',
        data
    });
}
// 导医登记患者
export function patientindexpatientadd (data) {
    return request({
        url: 'v1/patient/index/patient-add',
        method: 'post',
        data
    });
}
